package com.gosophia.conferenceManagement.common.entity;

import java.util.List;

import com.gosophia.taskManagement.entity.JobData;
import com.gosophia.userManagement.entity.UserInfo;

/**
 * 会议业务数据基类
 * @author nana
 */
public class ConferenceJobData extends JobData{
    
    //持久化
    /**
	 * 处理意见（备注、说明）
	 */
	private String opinion;
	
	/**
	 * 下一处理人
	 */
	private UserInfo nextApproval;
	
	/**
	 * 处理动作
	 */
	private String turningAction;
	
	/**
	 * 所关联在线文档
	 */
	private Document onlineDocument;
	
	/**
	 * 所关联附件
	 */
	private List<Document> attachments;

	//非持久化
	//下一个审批人的id
	private Long nextApprovalId;
	
	
	//getter setter
	public String getOpinion() {
		return opinion;
	}

	public void setOpinion(String opinion) {
		this.opinion = opinion;
	}

	public UserInfo getNextApproval() {
		return nextApproval;
	}

	public void setNextApproval(UserInfo nextApproval) {
		this.nextApproval = nextApproval;
	}

	public String getTurningAction() {
		return turningAction;
	}

	public void setTurningAction(String turningAction) {
		this.turningAction = turningAction;
	}

	public Document getOnlineDocument() {
		return onlineDocument;
	}

	public void setOnlineDocument(Document onlineDocument) {
		this.onlineDocument = onlineDocument;
	}

	public List<Document> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<Document> attachments) {
		this.attachments = attachments;
	}

    public Long getNextApprovalId() {
        return nextApprovalId;
    }

    public void setNextApprovalId(Long nextApprovalId) {
        this.nextApprovalId = nextApprovalId;
    }

    @Override
    public String toString() {
        return "ConferenceJobData [attachments=" + attachments
                + ", nextApproval=" + nextApproval + ", nextApprovalId="
                + nextApprovalId + ", onlineDocument=" + onlineDocument
                + ", opinion=" + opinion + ", turningAction=" + turningAction
                + "]";
    }
	
}
